using GroupSix.Domain.Entity;

namespace GroupSix.Domain.Entity.App;

/// <summary>
/// 系统设置实体
/// </summary>
public class GsSystemSetting : EntityBase
{
    /// <summary>
    /// 设置键
    /// </summary>
    public string SettingKey { get; set; } = string.Empty;

    /// <summary>
    /// 设置值
    /// </summary>
    public string SettingValue { get; set; } = string.Empty;

    /// <summary>
    /// 设置描述
    /// </summary>
    public string Description { get; set; } = string.Empty;

    /// <summary>
    /// 设置类型 (string, int, bool, json)
    /// </summary>
    public string SettingType { get; set; } = "string";

    /// <summary>
    /// 是否系统级设置（系统级设置只有管理员可修改）
    /// </summary>
    public bool IsSystemLevel { get; set; } = false;

    /// <summary>
    /// 设置分组
    /// </summary>
    public string Group { get; set; } = "general";

    /// <summary>
    /// 排序
    /// </summary>
    public int SortOrder { get; set; } = 0;

    /// <summary>
    /// 是否只读
    /// </summary>
    public bool IsReadOnly { get; set; } = false;
} 